//
// Ray.cpp for  in /home/herpec_j/Dropbox/Projets/raytracer-2016/Sources/Maths/
//
// Made by Jonathan
// Login   <ledey_l@epitech.net>
//
// Started on  Sun Sep 22 14:17:36 2013 Jonathan
// Last update Sun Sep 22 14:19:45 2013 Jonathan
//

#include	"Maths/Ray.hpp"

namespace	Maths
{
  Ray::Ray(void)
  {
    return;
  }

  Ray::Ray(Point const &rOrigin, Vector const &rDirection) : mOrigin(rOrigin), mDirection(rDirection)
  {
    return;
  }

  Ray::Ray(Ray const &rOther) : mOrigin(rOther.mOrigin), mDirection(rOther.mOrigin)
  {
    return;
  }

  Ray		&Ray::operator=(Ray const &rOther)
  {
    if (this != &rOther)
      {
	mOrigin = rOther.mOrigin;
	mDirection = rOther.mDirection;
      }
    return (*this);
  }

  Point const	&Ray::GetOrigin(void) const
  {
    return (mOrigin);
  }

  Vector const	&Ray::GetDirection(void) const
  {
    return (mDirection);
  }

  Ray::~Ray(void)
  {
    return;
  }
};
